$collapse-prefix-cls: "#{$css-prefix}collapse";

.#{$collapse-prefix-cls}{
  //background-color: $background-color-base;
  border-radius:$collapse-border-radius;
  border: 1px solid $border-color-base;

  & > &-item{
    border-top: $collapse-item-border-top;
    &:first-child {
        border-top: 0;
    }

    > .#{$collapse-prefix-cls}-header{
      height: $collapse-header-height;
      line-height: $collapse-header-height;
      padding-left: $collapse-header-padding-left;
      color: $collapse-header-color;
      cursor: pointer;
      position: relative;
      font-weight: 700;
      font-size: $font-size-base;
      text-align: left;
      background-color:$collapse-header-bgcolor;
      > i{
        display: inline-block;
        color:  $collapse-header-i-color;
        transition: transform $transition-time $ease-in-out;
      }
    }
  }
  &  > &-item.#{$collapse-prefix-cls}-item-active > &-header > i{
    transform: rotate(90deg);
  }

  &-content{
    //display: none;
    // overflow: hidden;
    color: $text-color;
    padding: $collapse-content-padding;
    background-color:$collapse-content-bgcolor;
    border-top: 1px solid $collapse-content-border-top-color;
    font-size:$collapse-content-font-size;

    & > &-box {
        padding-top: $collapse-box-padding-top;
        padding-bottom:$collapse-box-padding-top;

        > p{
          font-family: MicrosoftYaHei;
          font-size: $collapse-content-font-size;
          color: $text-color;
          text-align: left;
          line-height: 20px;
        }
    }
  }
  &-item-active > &-content{
    //display: block;
  }
  &-item:last-child {
    > .#{$collapse-prefix-cls}-content {
        border-radius: 0 0 3px 3px;
    }
  }
}
